﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity
{
    /// <summary>
    /// 基础实体
    /// </summary>
    public class EntityBase
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreatedDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128)]
        public string? Remark { get; set; }
    }
}
